home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 15
/
015.d81
/
t.secret boot
< prev
next >
Wrap
Text File
|
2022-08-26
|
3KB
|
156 lines
SECRET CODE
Written by: Thomas F. Trocco
A Secret Code Subroutine for the C-64
PowerPlay Magazine, September 1985
Page 59
Every once in a while you might
write a piece of software that needs
protecting. Software protection has
become a very big business in the past
few years. It seems that everyone
wants to have their software and
things like data bases protected from
unidentified or illegal access. In
the interest of serving the home
computer market (especially the C-64
market since they are such great
people!!), Thomas Trocco has brought
you a SECRET CODE SUBROUTINE for the
Commodore 64.
If you have a program that you only
want certain people to use, you can
tell them a secret code word and any
unauthorized persons who attempt to
guess the code word will not be able
to gain any type of access to the
program. The only way to gain access
to the program is by way of the secret
code word.
If you want to know how the program
works, here is what each program line
does. The lines described are a part
of an example program on this disk
named SECRET-2.
Line 0 -- Will not allow the
program to be LISTed
Line 1 -- Disable the RUN/STOP
and RESTORE keys. This
is done so the program
can not be broken into.
Line 2 -- Clear the screen
Line 3 -- Asks the user to input
the code word.
Line 4 -- Compares the input word
to the real code word.
The code word is made
up of CHR$ codes. For
a list of CHR$ codes,
see pages 135-137 of
the Commodore 64 User's
Guide. If the code word
is not the same as the
word typed in, then the
program prints YOU LOSE
and then NEWs itself.
Line 5 -- Restore the RUN/STOP and
RESTORE keys so the
program can be listed.
You can include this
line if you want. It
will be executed only
if the correct code
word is given.
If you want to use a code word longer
than 6 characters, then you will have
to abbreviate the commands in line 4
as follows:
CHR$ --- C <shift H>
POKE --- P <shift O>
THEN --- T <shift H>
Be sure to remember any secret code
words you use--you may want access to
some of your own programs.
**** NOTE ****
Because of the nature of this
program, you can not RUN it from
LOADSTAR. The secret code word for
the example program is MONKEY.
This program is copyrighted by
PowerPlay magazine. All rights to it
are reserved. LOADSTAR has relieved
you from the burden of keying in this
program. For more complete
information about this program, refer
to the September 1985 issue of
PowerPlay Magazine.
>Files used: SECRET-1
SECRET-2
--------------------------------------